package com.fengye.lock.zk.service;

import com.fengye.lock.zk.domain.UserReg;
import com.fengye.lock.zk.dto.UserRegDTO;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.locks.InterProcessMutex;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 *
 * @author sky
 * @date 2021年06月11日 1:19 下午
 */

public interface UserRegService {
    UserReg selectByUsername(String username);
    void registerWithZkLock(UserRegDTO dto) throws Exception;
}
